package com.vegetable.modules.entity.finance.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="银行流水对象", description="银行流水对象")
public class TransactionsQueryPO {
    @ApiModelProperty("交易金额")
    private BigDecimal tradingAmount;
    @ApiModelProperty("手续费")
    private String fee;
    @ApiModelProperty("交易类型 'INCOME','EXPENSE','REFUND'")
    private String tradingType;
    @ApiModelProperty("交易状态 'SUCCESS','FAILED','PROCESSING'")
    private String status;
    @ApiModelProperty("支付渠道 'WECHAT','ALIPAY','BANK'")
    private String channel;
    @ApiModelProperty("银行名称")
    private String bankName;
    @ApiModelProperty("商户ID")
    private String merchantId;
    @ApiModelProperty("交易对手方")
    private String counterparty;
    @ApiModelProperty("交易描述")
    private String tradingDescription;
    @ApiModelProperty("原始数据")
    private String rawData;
    @ApiModelProperty("付款银行卡ID")
    private String bankNo;
    @ApiModelProperty("关联账户id")
    private Long fundAccountId;

    private Long abId;

    @ApiModelProperty("是否已处理：true-已处理(ab_id!=0)，false-未处理(ab_id==0)，null-全部")
    private Boolean isProcessed;
    private Long page;

    private Long limit;

    @ApiModelProperty(value = "查询开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value = "查询结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date endTime;
    @ApiModelProperty("备注")
    private String remark;
}
